import request from '@/utils/request'

// 查询财务收入列表
export function listReceipts(query) {
  return request({
    url: '/system/receipts/list',
    method: 'get',
    params: query
  })
}

// 查询财务收入详细
export function getReceipts(id) {
  return request({
    url: '/system/receipts/' + id,
    method: 'get'
  })
}

// 新增财务收入
export function addReceipts(data) {
  return request({
    url: '/system/receipts',
    method: 'post',
    data: data
  })
}

// 修改财务收入
export function updateReceipts(data) {
  return request({
    url: '/system/receipts',
    method: 'put',
    data: data
  })
}

// 删除财务收入
export function delReceipts(id) {
  return request({
    url: '/system/receipts/' + id,
    method: 'delete'
  })
}
